package com.ml.mall.entity.remark;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 *
 * @TableName sys_remark
 */
@TableName(value ="sys_remark")
@Data
public class SysRemark implements Serializable {
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @TableField(value = "create_at", fill = FieldFill.INSERT)
    private Date createAt;

    /**
     * 更新时间
     */
    @TableField(value = "update_at", fill = FieldFill.INSERT_UPDATE)
    private Date updateAt;

    /**
     * 备注者账号
     */
    @TableField(value = "creator_acc")
    private String creatorAcc;

    /**
     * 备注目标对象
     */
    @TableField(value = "target")
    private Long target;

    /**
     * 备注内容
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 备注类型: 1.订单备注
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 创建者名称
     */
    @TableField(value = "creator_name")
    private String creatorName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
